﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EfCore.Configers
{
    public class EIConfigers : IEntityTypeConfiguration<EI>
    {
        public void Configure(EntityTypeBuilder<EI> builder)
        {
            builder.ToTable("EI"); // 设置表名
            builder.HasKey(e => e.EinId); // 设置主键HunmaManjorName
            builder.Property(e => e.EinId).HasColumnName("EinId").ValueGeneratedOnAdd(); // 设置自增列
            builder.Property(e => e.HumanName).HasColumnName("HumanName"); // 设置姓名列
            builder.Property(e => e.InterviewAmount).HasColumnName("InterviewAmount"); // 设置面试次数列
            builder.Property(e => e.HumanMajorKindId).HasColumnName("HumanMajorKindId"); // 设置职位分类编号列
            builder.Property(e => e.HumanMajorKindName).HasColumnName("HumanMajorKindName"); // 设置职位分类名称列
            builder.Property(e => e.HumanMajorId).HasColumnName("HumanMajorId"); // 设置职位编号列
            builder.Property(e => e.HunmaMajorName).HasColumnName("HunmaMajorName"); // 设置职位名称列
            builder.Property(e => e.ImageDegree).HasColumnName("ImageDegree"); // 设置形象等级列
            builder.Property(e => e.NativeLanguageDegree).HasColumnName("NativeLanguageDegree"); // 设置口才等级列
            builder.Property(e => e.ForeignLanguageDegree).HasColumnName("ForeignLanguageDegree"); // 设置外语水平等级列
            builder.Property(e => e.ResponseSpeedDegree).HasColumnName("ResponseSpeedDegree"); // 设置应变能力列
            builder.Property(e => e.EQDegree).HasColumnName("EQDegree"); // 设置EQ等级列
            builder.Property(e => e.IQDegree).HasColumnName("IQDegree"); // 设置IQ_等级列
            builder.Property(e => e.MultiQualityDegree).HasColumnName("MultiQualityDegree"); // 设置综合素质列
            builder.Property(e => e.Register).HasColumnName("Register"); // 设置面试人列
            builder.Property(e => e.Checker).HasColumnName("Checker"); // 设置筛选人列
            builder.Property(e => e.RegisteTime).HasColumnName("RegisteTime"); // 设置面试时间列
            builder.Property(e => e.CheckTime).HasColumnName("CheckTime"); // 设置筛选时间列
            builder.Property(e => e.ResumeId).HasColumnName("ResumeId"); // 设置简历编号列
            builder.Property(e => e.Result).HasColumnName("Result"); // 设置面试结果列
            builder.Property(e => e.InterviewComment).HasColumnName("InterviewComment"); // 设置面试评价列
            builder.Property(e => e.CheckComment).HasColumnName("CheckComment"); // 设置筛选评价列
            builder.Property(e => e.InterviewStatus).HasColumnName("InterviewStatus"); // 设置面试状态列
            builder.Property(e => e.CheckStatus).HasColumnName("CheckStatus"); // 设置筛选状态列
                                                                               // 设置其他属性的配置...
        }
    }
}
